// 《围棋》作者版权所有。保留所有权利。
// 此源代码的使用受BSD样式
// 许可证的约束，该许可证可以在许可证文件中找到。

package modload

import "cmd/go/internal/base"

var HelpModules = &base.Command{
	UsageLine: "modules",
	Short:     "modules, module versions, and more",
	Long: `
Modules are how Go manages dependencies.

A module is a collection of packages that are released, versioned, and
distributed together. Modules may be downloaded directly from version control
repositories or from module proxy servers.

For a series of tutorials on modules, see
https:// golang。组织/文档/教程/创建模块。

For a detailed reference on modules, see https:// golang。org/ref/mod。

By default, the go command may download modules from https:// 代理。戈朗。组织。
It may authenticate modules using the checksum database at
https:// sum。戈朗。组织。这两项服务都由谷歌的Go团队运营。
The privacy policies for these services are available at
https:// 代理。戈朗。org/privacy and https:
respectively.

The go command's download behavior may be configured using GOPROXY, GOSUMDB,
GOPRIVATE, and other environment variables. See 'go help environment'
and https:// golang。org/ref/mod#隐私模块了解更多信息。
	`,
}

var HelpGoMod = &base.Command{
	UsageLine: "go.mod",
	Short:     "the go.mod file",
	Long: `
A module version is defined by a tree of source files, with a go.mod
file in its root. When the go command is run, it looks in the current
directory and then successive parent directories to find the go.mod
marking the root of the main (current) module.

The go.mod file format is described in detail at
https:// golang。org/ref/mod#转到mod文件。

To create a new go.mod file, use 'go mod init'. For details see
'go help mod init' or https:// golang。org/ref/mod#转到mod init。

To add missing module requirements or remove unneeded requirements,
use 'go mod tidy'. For details, see 'go help mod tidy' or
https:// golang。org/ref/mod#去整理一下。

To add, upgrade, downgrade, or remove a specific module requirement, use
'go get'. For details, see 'go help module-get' or
https:// golang。org/ref/mod#去拿。

To make other changes or to parse go.mod as JSON for use by other tools,
use 'go mod edit'. See 'go help mod edit' or
https:// golang。org/ref/mod#转到mod edit。
	`,
}
